<template>
  <div class="box">
    <swiper class="swiper" :options="swiperOption">
      <swiper-slide v-for="(item, index) in slides" :key="index" class="slide">
        <img :src="publicPath + item.src" />
        <div class="text">
          <span class="title">{{ item.title }}</span>
          <span class="name">{{ item.name }}</span>
          <span class="info">{{ item.info }}</span>
        </div>
      </swiper-slide>
    </swiper>
    <div class="big-title">
      <p class="big-title-text">优质的团队</p>
      <p class="big-title-text-info">
        优质的团队优质的团队优质的团队优质的团队优质的团队优质的团队优质的团队
      </p>
      <p class="big-title-text-info">
        优质的团队优质的团队优质的团队
      </p>
      <p class="big-title-text-info">
        优质的团队优质的团队优质的团队优质的团队优质的团队
      </p>
      <div class="img1">
        <img :src="publicPath + 'team1.png'" />
      </div>
      <div class="img1">
        <img :src="publicPath + 'team2.png'" />
      </div>
      <div class="img2-box">
        <div>
          <img :src="publicPath + 'team3.png'" />
        </div>
        <div>
          <img :src="publicPath + 'team4.png'" />
        </div>
        <div>
          <img :src="publicPath + 'team5.png'" />
        </div>
        <div>
          <img :src="publicPath + 'team6.png'" />
        </div>
      </div>
      <div class="img3-box">
        <div>
          <img :src="publicPath + 'team7.png'" />
        </div>
        <div>
          <img :src="publicPath + 'team8.png'" />
        </div>
        <div>
          <img :src="publicPath + 'team9.png'" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      swiperOption: {
        slidesPerView: 5,
        spaceBetween: 50,
        // init: false,
        pagination: {
          el: ".swiper-pagination",
          clickable: true
        },
        breakpoints: {
          1024: {
            slidesPerView: 3,
            spaceBetween: 40
          },
          768: {
            slidesPerView: 3,
            spaceBetween: 30
          },
          640: {
            slidesPerView: 3,
            spaceBetween: 20
          },
          320: {
            slidesPerView: 3,
            spaceBetween: 10
          }
        }
      },
      slides: [
        {
          title: "资深导师",
          name: "YOYO",
          info: "丰富的教学经验，日韩首席交流导师",
          src: "shizililiang1.png"
        },
        {
          title: "资深导师",
          name: "YOYO",
          info: "丰富的教学经验，日韩首席交流导师",
          src: "shizililiang1.png"
        },
        {
          title: "资深导师",
          name: "YOYO",
          info: "丰富的教学经验，日韩首席交流导师",
          src: "shizililiang1.png"
        },
        {
          title: "资深导师",
          name: "YOYO",
          info: "丰富的教学经验，日韩首席交流导师",
          src: "shizililiang1.png"
        },
        {
          title: "资深导师",
          name: "YOYO",
          info: "丰富的教学经验，日韩首席交流导师",
          src: "shizililiang1.png"
        },
        {
          title: "资深导师",
          name: "YOYO",
          info: "丰富的教学经验，日韩首席交流导师",
          src: "shizililiang1.png"
        },
        {
          title: "资深导师",
          name: "YOYO",
          info: "丰富的教学经验，日韩首席交流导师",
          src: "shizililiang1.png"
        },
        {
          title: "资深导师",
          name: "YOYO",
          info: "丰富的教学经验，日韩首席交流导师",
          src: "shizililiang1.png"
        }
      ],
      publicPath: process.env.BASE_URL
    };
  }
};
</script>

<style lang="scss" scoped>
.box {
  // width: 96%;
  padding: 0 14px;
  margin: 0 auto;
  background-image: url("./../assets/szllback.png")
}
.swiper {
  height: 240px;
  .slide {
    height: 140px;
    img {
      width: 100%;
      height: 100%;
      border-radius: 4% 4% 0 0;
      margin: 0 !important;
      display: block;
    }
  }
  .text {
    background: #48433a;
    border-radius: 0 0 5px 5px;
    color: #fff;
    box-sizing: border-box;
    padding: 9px;
    span {
      display: block;
      margin-top: 5px;
    }
    .title {
      font-size: 12px;
      line-height: 17px;
    }
    .name {
      font-size: 12px;
      line-height: 17px;
    }
    .info {
      font-size: 7px;
    }
  }
}
.big-title {
  margin-top: 30px;
  .big-title-text {
    font-size: 22px;
    color: #000;
    text-align: center;
  }
  .big-title-text-info {
    width: 90%;
    color: #000;
    font-size: 14px;
    text-align: center;
    margin: 0 auto;
  }
  .img1 {
    padding: 0;
    margin: 0 !important;
    margin-top: 10px !important;
    img {
      width: 100%;
      padding: 0;
      margin: 0 !important;
    }
  }
  .img2-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    div {
      width: 50%;
      height: 100%;
      box-sizing: border-box;
      img {
        width: 100%;
        height: 100%;
      }
    }
    div:nth-child(odd) {
      padding-right: 3px;
      padding-top: 3px;
    }
    div:nth-child(even) {
      padding-left: 4px;
      padding-top: 4px;
    }
  }
  .img3-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    div {
      width: 32%;
      height: 110px;
      margin-top: 5px;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
}
</style>
